# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gpicview
pkgver=0.2.6
pkgrel=0
pkgdesc="Picture viewer of the LXDE Desktop"
url="https://github.com/lxde/gpicview"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-lang"
makedepends="autoconf automake gtk+3.0-dev intltool libjpeg-turbo-dev"
source="https://github.com/lxde/gpicview/archive/refs/tags/$pkgver/gpicview-$pkgver.tar.gz"

prepare() {
	default_prepare

	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--prefix=/usr \
		--enable-gtk3
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
02410a6a000ee89b40f42abfdf40a679594b76f5fd4b5417c5d667f52bb4285e8fb62c3a72aa00ee71077cab188cb4152c63fe2ee5abffa9e915f0efe195fcdd  gpicview-0.2.6.tar.gz
"
